Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / app / src / google / java / com / geeksville / mesh / android / prefs / GoogleMapsModule.kt

Displaying Raw • Download

app/src/google/java/com/geeksville/mesh/android/prefs/GoogleMapsModule.kt ui_message_list (be3f882f) Text, 1.83 KB

T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

Tff7b72package T7ee787com.geeksville.mesh.android.prefs

Tff7b72import T7ee787android.content.Context
Tff7b72import T7ee787android.content.SharedPreferences
Tff7b72import T7ee787dagger.Module
Tff7b72import T7ee787dagger.Provides
Tff7b72import T7ee787dagger.hilt.InstallIn
Tff7b72import T7ee787dagger.hilt.android.qualifiers.ApplicationContext
Tff7b72import T7ee787dagger.hilt.components.SingletonComponent
Tff7b72import T7ee787javax.inject.Qualifier
Tff7b72import T7ee787javax.inject.Singleton

T8b949e// Pref store qualifiers are private to prevent prefs stores from being injected directly.
T8b949e// Consuming code should always inject one of the prefs repositories.

Tf0883e@Qualifier
Tf0883e@RetentionTb4b4b4(Te6edf3AnnotationRetentionTb4b4b4.Te6edf3BINARYTb4b4b4)
Tff7b72private Tff7b72annotation Tff7b72class T56d364GoogleMapsSharedPreferences

Tf0883e@InstallInTb4b4b4(Te6edf3SingletonComponentTff7b72::Te6edf3classTb4b4b4)
Tf0883e@Module
Tff7b72object T56d364GoogleMapsModule Tb4b4b4{

Tf0883e@Provides
Tf0883e@Singleton
Tf0883e@GoogleMapsSharedPreferences
Tff7b72fun Td2a8ffprovideGoogleMapsSharedPreferencesTb4b4b4(Tf0883e@ApplicationContext Te6edf3contextTb4b4b4: Te6edf3ContextTb4b4b4)Tb4b4b4: Te6edf3SharedPreferences Tff7b72=
Te6edf3contextTb4b4b4.Te6edf3getSharedPreferencesTb4b4b4(Ta5d6ff"Ta5d6ffgoogle_maps_prefsTa5d6ff"Tb4b4b4, Te6edf3ContextTb4b4b4.Te6edf3MODE_PRIVATETb4b4b4)

Tf0883e@Provides
Tf0883e@Singleton
Tff7b72fun Td2a8ffprovideGoogleMapsPrefsTb4b4b4(Tf0883e@GoogleMapsSharedPreferences Te6edf3sharedPreferencesTb4b4b4: Te6edf3SharedPreferencesTb4b4b4)Tb4b4b4: Te6edf3GoogleMapsPrefs Tff7b72=
Te6edf3GoogleMapsPrefsImplTb4b4b4(Te6edf3sharedPreferencesTb4b4b4)
Tb4b4b4}

Served by rngit 1.5.2 - Generated in 0.04s